#include<stdio.h>
int main()
{
	int n;
	scanf("%d",&n);
	int find = 0;
	for(int i=0;i<=n/5;i++) {
		for(int j=0;j<=n/3;j++) {
			int k = n-i-j;
			if(k%3==0&&i*5+j*3+k/3==n) {
				printf("%-4d%-4d%-4d\n",i,j,k);
				find = 1;
			}
		}
	}
	if(!find) {
		printf("No Answer\n");
	}
	return 0;
	
}
